@use "../../ui/vars" as *;

.contributor-spotlight {
  color: var(--text-primary);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  position: relative;

  blockquote {
    margin: 0;
    border: 0;
    font-style: italic;
    padding: 0;
    display: flex;

    .icon {
      margin-right: 0.5rem;
      margin-top: 0.25rem;
    }
  }

  h4 {
    font: var(--type-body-m);
  }

  .text-col {
    display: flex;
    flex-direction: column;
    max-width: 52rem;
    padding: 0 1rem;
    width: 100%;
    gap: 1rem;
    align-items: center;
  }

  .spotlight-cta {
    width: fit-content;
    --button-bg: var(--text-link);
    --button-border-color: #{$mdn-color-dark-grey-90};
    --button-color: var(--mdn-color-black);
    --button-radius: 10rem;
    --button-padding: 1rem;
    --button-primary-hover: #{$mdn-color-dark-grey-40};
  }

  .wrapper {
    display: flex;
    flex-direction: column;
    max-width: 52rem;
    width: 100%;
    gap: 2rem;
    padding: 2rem 1rem;
    align-items: center;
  }

  .contributor-graphic {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: break-word;

    img {
      max-width: 90%;
      height: max-content;
    }
  }

  .contributor-name {
    // note: this deviates from var(--type-title-l),
    // as it uses the body font family.
    font-size: 1.5rem;
    font-weight: 650;
    color: var(--mdn-color-black);
    background-color: var(--mdn-color-white);
    width: fit-content;
    line-height: 1.4;
    text-transform: uppercase;

    &::after,
    &::before {
      content: " ";
    }

    &:link,
    &:visited {
      color: var(--mdn-color-black);
      text-decoration: none;
    }

    &:hover,
    &:focus {
      text-decoration: underline;
    }
  }

  @media screen and (min-width: $screen-md) {
    .wrapper {
      flex-direction: row;
      align-items: initial;
    }

    .text-col {
      align-items: initial;
      text-align: left;
    }
  }

  .mandala-container {
    background: rgba(1, 1, 1, 0.9);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    z-index: -1;
    overflow: hidden;
    --mandala-primary: var(--border-primary);

    .mandala-translate {
      transform: translate(-5rem, -0rem);
    }
  }
}
